package com.pan.structual.decorator.frame.impl;

import com.pan.structual.decorator.frame.MyFrame;

import javax.swing.*;

public class BigFrame implements MyFrame {
    private JFrame frame;

    {

     frame = new JFrame("Big Frame");
    }
    @Override
    public void disposition() {
        frame.setBounds(200,200,800,400);
        frame.setDefaultCloseOperation(3);
    }

    @Override
    public void use() {
        frame.setVisible(true);
    }

    @Override
    public JFrame getFrame() {
        return frame;
    }
}
